import request from '@/utils/request'

export function getQuestionListService(params) {
    return request({
        url: "/question/list",
        method: 'get',
        params,
    });
}

export function addQuestionService(params = {}) {
    return request({
        url: "/question/add",
        method: "post",
        data: params,
    })
}

export function getQuestionDetailService(questionId) {
    return request({
      url: "/question/detail",
      method: "get",
      params: { questionId },
    });
  }
  
  export function editQuestionService(params = {}) {
    return request({
      url: "/question/edit",
      method: "put",
      data: params,
    });
  }
  
  export function delQuestionService(questionId) {
    return request({
      url: "/question/delete",
      method: "delete",
      params: { questionId },
    });
  }